<? if ( $this->ret['data']['delsmsid'][0] && ($row['sms_id']<=$this->ret['data']['delsmsid'][0]) || ($row['sms_isdelete']==1 && $row['sms_senderid']==self::$login['uid'] )): ?>
<div class="mymsg">
	<div class="friend-head">
    	<div class="avatar50">
    	<i:avatar xmlns:i="178" uid="<?= $row['sms_senderid']?>" size="50"  border="false" username="<?= $row['sms_sender']?>" title="<?= $row['sms_sender']?>" addlink="true" link="/?uid=<?=$row['sms_senderid']?>"/>
        </div>
        <div class="friend-name">
		<i:name xmlns:i="178" length ="9" uid="<?=$row['sms_senderid']?>" username="<?= $row['sms_sender']?>"/>
        </div>
	</div>
	<div class="msg-main">
		<div class="msg-title">	
			<div class="msg-time"><span></span></div>	
		</div>
		<div class="msg-content">
			<font color='red'>此信息已经删除</font>
        </div>
	</div>
</div>
<? else: ?>
<div class="mymsg">
	<div class="friend-head">
    	<i:avatar xmlns:i="178" uid="<?= $row['sms_senderid']?>" size="50"  border="false" username="<?= $row['sms_sender']?>" title="<?= $row['sms_sender']?>" addlink="true" link="/?uid=<?=$row['sms_senderid']?>"/>
		<i:name xmlns:i="178" length ="9" uid="<?=$row['sms_senderid']?>" username="<?= $row['sms_sender']?>"/>
	</div>
	<div class="msg-main">
    	<div class="msg-title">	
			<div class="msg-time"><span><?= Util::formatTime($row['sms_dateline'])?></span></div>	
		</div>
		<div class="msg-content">
        <? if($row['sms_title']): ?>
        	<h3><?= $row['sms_title']?></h3>	
        <? endif ?>
			<p>
			<script>
				UBBCode.output("<?= sms_util_text::formatOutputContent($row['sms_content'])?>");
			</script></p>  
        </div>
	</div>
</div>
<? endif ?>